﻿using Quartz;

namespace MyWeb.TaskGrpc
{
    public class MyTrigger
    {
        public static ITrigger Create()
        {
            return TriggerBuilder.Create()
            .WithIdentity("MyTrigger", "MyGroup")
            .StartNow()
            .WithSimpleSchedule(x => x
            .WithIntervalInSeconds(3)
            .RepeatForever())
            .Build();
        }
    }
}
